#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common;


import java.util.Date;

/**
 * @author yangfei
 * @desc 统一返回
 * @create 2017-07-22 17:02
 * @update 2017-07-22 17:02
 **/
public class ResultUtil {

    /**
     * 自定义错误信息
     *
     * @param code
     * @param msg
     * @return
     */
    public static Response error(String code, String msg) {
        Response response = new Response();
        response.setError(new Response.Error(code, msg, String.valueOf(new Date())));
        return response;
    }

}
